﻿package toolbar {
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class IntroSquare extends Sprite {
		private var tf:TextField;
		
		public function IntroSquare():void {
			visible = false;
			tf = new TextField();
			tf.height = 18;
			tf.border = true;
			tf.textColor = Config.INTRO_COLOR;
			tf.background = true;
			tf.backgroundColor = Config.INTRO_BGC;
			addChild(tf);
		}
		
		public function showIntro(s:String, mx:int, my:int):void {
			x = mx + 10;
			y = my + 10;
			tf.text = s;
			tf.width = tf.textWidth + 3;
			visible = true;
		}
		public function hideIntro():void {
			visible = false;
		}
	}
}